﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace PTools.SharePointEntity.Exceptions
{
    /// <summary>
    /// This exception serves as base class for SharePoint Lists not found
    /// </summary>
    public class ListNotFoundException: SharePointEntityException
    {
        /// <summary>
        /// Default empty constructor
        /// </summary>
        public ListNotFoundException()
            : base("List could not be found.")
        {
        }

        /// <summary>
        /// Default message constructor
        /// </summary>
        /// <param name="listName">The name of the List that couldn't be found</param>
        public ListNotFoundException(string listName)
            : base("List [" + listName + "] not found on the web provided.")
        {
        }

        /// <summary>
        /// Default message and inner exception constructor
        /// </summary>
        /// <param name="message">The message saying which list wasn't found</param>
        /// <param name="innerException">The exception you want to add</param>
        public ListNotFoundException(string message, Exception innerException)
            : base(message, innerException)
        {
        }
    }
}
